;------------------------------------------------------------------------------
;------------------------------WEAPONS.INI-------------------------------------
;------------------------------------------------------------------------------

;-------------------------------------------------------------------------------
Weapon WitchKingMorgulBlade     ; BALANCE Witch King Weapon
	LeechRangeWeapon      = Yes
	AttackRange           = 30.0
	MeleeWeapon           = Yes
	DelayBetweenShots     = WITCHKING_DELAYBETWEENSHOTS 	; time between shots, msec
	PreAttackDelay        = WITCHKING_SWORD_PREATTACKDELAY 	; 300 is mace swing delay time before contact with target.
	PreAttackType         = PER_SHOT ; Do the delay each time we attack
	FireFX                = FX_GondorSwordHit
	FiringDuration        = WITCHKING_FIRINGDURATION 	; Duration of the mace swing 

	DamageNugget                        ; A basic Nugget that just does damage
		Damage        = WITCHKING_DAMAGE				
		Radius        = 0.0
		DelayTime     = 0
		DamageType    = SLASH
		;DamageFXType  = NONE
		DeathType     = NORMAL
		DamageScalar  = 10% NONE +RohanEowyn
	End
End

;-------------------------------------------------------------------------------
; this weapon is the same as WitchKingMorgulBlade with an added AttributeModifierNugget used for his special attack
Weapon WitchKingMorgulBladeSpecialPower     ; BALANCE Orc Warrior Weapon
	LeechRangeWeapon      = Yes
	AttackRange           = 30.0
	MeleeWeapon           = Yes
	DelayBetweenShots     = WITCHKING_MORGULBLADE_DELAYBETWEENSHOTS 	; time between shots, msec
	PreAttackDelay        = WITCHKING_MORGULBLADE_PREATTACKDELAY 		; 300 is mace swing delay time before contact with target.
	PreAttackType         = PER_SHOT ; Do the delay each time we attack
	FireFX                = FX_GondorSwordHit
	FiringDuration        = WITCHKING_MORGULBLADE_FIRINGDURATION 		; Duration of the mace swing
	;ClipSize				= 1
	;AutoReloadsClip			= Yes
	;ClipReloadTime			= 5000 

	DamageNugget                        ; A basic Nugget that just does damage
		Damage        = WITCHKING_MORGULBLADE_DAMAGE
		Radius        = 0.0
		DelayTime     = 0
		DamageType    = MAGIC
		DamageFXType  = WITCH_KING_MORGUL_BLADE
		DeathType     = NORMAL
		DamageScalar  = 10% NONE +RohanEowyn
	End
	AttributeModifierNugget
		AttributeModifier = WitchKingMorgulBladeEffect
	End
End

;-------------------------------------------------------------------------------
Weapon WitchKingWarMace
	LeechRangeWeapon		= Yes
	AttackRange				= 12.0
	MeleeWeapon				= Yes
	DelayBetweenShots		= WITCHKING_MACE_DELAYBETWEENSHOTS 		; time between shots, msec
	PreAttackDelay			= WITCHKING_MACE_PREATTACKDELAY 			; 300 is mace swing delay time before contact with target.
	PreAttackType			= PER_SHOT ; Do the delay each time we attack
	FireFX					= FX_GondorSwordHit
	FiringDuration			= WITCHKING_MACE_FIRINGDURATION 			; Duration of the mace swing 
	;ClipSize				= 1  ;  Commented out, don't see why we need clips for the mace. - 7/9/04
	;AutoReloadsClip			= Yes
	;ClipReloadTime			= 5000

	DamageNugget                        ; A basic Nugget that just does damage
		Damage        = WITCHKING_MACE_DAMAGE				
		Radius        = 20.0
		DelayTime     = 0
		DamageType    = SLASH
		DamageFXType  = SWORD_SLASH
		DeathType     = NORMAL
		DamageScalar  = 10% NONE +RohanEowyn
	End
	MetaImpactNugget                    ; A Nugget that throws things back with force
		HeroResist			= .75
		ShockWaveAmount   = 50.0
		ShockWaveRadius   = 20.0
		ShockWaveTaperOff = 0.75
	End
End



;-------------------------------------------------------------------
;-------------------------WITCHKING.INI OR EVILFACTIONUNITS.INI-----
;-------------------------------------------------------------------

 	;;; DOMINATE SPECIAL POWER ;;;
 	Behavior = UnpauseSpecialPowerUpgrade ModuleTag_DominateEnabler
		SpecialPowerTemplate		= SpecialAbilityDominateEnemy
		TriggeredBy					= Upgrade_WitchKingDominate
	End

	Behavior = SpecialPowerModule ModuleTag_DominateEnemySpecialPowerModule
		SpecialPowerTemplate		= SpecialAbilityDominateEnemy 
		StartsPaused			= Yes
		UpdateModuleStartsAttack	= Yes
		;InitiateSound			= SarumanVoiceDominate
	End

 	Behavior = DominateEnemySpecialPower ModuleTag_DominateEnemySpecialPower
        	SpecialPowerTemplate		= SpecialAbilityDominateEnemy 
		UnpackingVariation			= 1
		StartAbilityRange			= 200.0
		
		DominateRadius				= 60 ;100 ;150
		DominatedFX					= FX_SarumanDominateTargets
		TriggerFX					= FX_SarumanDominateTrigger
		
		UnpackTime					= 2000
		PreparationTime				= 1   
		FreezeAfterTriggerDuration	= 2500 ; Hold AI for this long after we fire.		
    End


;----------------------------------------------------------
;------------------UPGRADE.INI-----------------------------
;----------------------------------------------------------

Upgrade Upgrade_WitchKingDominate
  Type              = OBJECT
End

Upgrade Upgrade_WitchKingBlackBreath
  Type              = OBJECT
End


;-----------------------------------------------------------
;------------------EXPERIENCELEVELS.INI---------------------
;-----------------------------------------------------------

Upgrades = Upgrade_WitchKingDominate 

;-----------------------------------------------------------
;------------------FXPARTICLESYSTEM.INI---------------------
;-----------------------------------------------------------

FXParticleSystem WitchKingPoison
  System
    Priority = WEAPON_TRAIL
    ParticleName = EXLightAura01.tga
    Lifetime = 100 100
    SystemLifetime = 60 60
    SortLevel = 1
    BurstCount = 0 2
  End
  Color = DefaultColor
    Color2 = R:56 G:78 B:33 50
    Color3 = R:0 G:0 B:0 100
    Color4 = R:32 G:32 B:32 0
  End
  Update = DefaultUpdate
    SizeRate = 1 1
    SizeRateDamping = 0.9 0.95
  End
  Physics = DefaultPhysics
    Gravity = -0.01
    VelocityDamping = 0.9 0.95
  End
  EmissionVelocity = OrthoEmissionVelocity
  End
  EmissionVolume = BoxEmissionVolume
    HalfSize = X:5 Y:5 Z:10
  End
  Draw = DefaultDraw
  End
End

;;;----end witchking data-----

;-----------------------------------------------------------
;------------------ATRIBUTEMODIFIER.INI---------------------
;-----------------------------------------------------------

ModifierList WitchKingPassiveLeadership
	Category = LEADERSHIP
	Modifier = EXPERIENCE 100%
	Modifier = ARMOR 50%
	Modifier = DAMAGE_MULT 200%		; Multiplicitive.  Damage multiplied by this, will compound in multiple bonuses
	Duration = 2500				; Matches RefreshRate of giving module
	FX	= FX_GenericLeadershipLvl1
	FX2 = FX_GenericLeadershipLvl2
	FX3 = FX_GenericLeadershipLvl3
	MultiLevelFX = Yes
End

ModifierList WitchKingMorgulBladeEffect
	Category = WEAPON
	Modifier = DAMAGE_MULT 50%		; Multiplicitive.  Damage multiplied by this, will compound in multiple bonuses
	Modifier = ARMOR 50%		; Additive.  Sum of these are subtracted from all entries in Armor.ini
	Modifier = SPEED 25%		; Multiplicitive. Speed multiplied by this, will compound in multiple bonuses
	Duration = 10000			; Matches RefreshRate of giving module
End


;-----------------------------------------------------------
;------------------COMMANDSET.INI---------------------------
;-----------------------------------------------------------

CommandSet MordorWitchKingCommandSetNew
	1 = Command_WitchKingLeadership
	2 = Command_ToggleWitchKingWeapon
	3 = Command_FireWitchKingMorgulBlade
	4 = Command_SpecialAbilityBlackBreath
	5 = Command_WitchKingWordOfPower
	6 = Command_WitchKingMountFellBeast
		13 = Command_AttackMove
		14 = Command_Stop
		15 = Command_Guard
End

CommandSet MordorWitchKingRidingFellBeastCommandSetNew
	1 = Command_SpecialAbilityScreech
	2 = Command_WitchKingLeadership
	3 = Command_WitchKingUnMountFellBeast
		13 = Command_AttackMove
		14 = Command_Stop
		15 = Command_Guard
End

;-----------------------------------------------------------
;------------------COMMANDBUTTON.INI------------------------
;-----------------------------------------------------------

CommandButton Command_WitchKingLeadership
  Command                 = SPECIAL_POWER
  SpecialPower            = SpecialAbilityFakeLeadership
  Options				  = NONPRESSABLE
  TextLabel               = CONTROLBAR:Leadership
  ButtonImage             = HPWitchKingLeadership
  RadiusCursorType        = TRAINING
  ;Upgrade		= Upgrade_WitchKingLeadership
  ButtonBorderType        = ACTION
  DescriptLabel           = CONTROLBAR:ToolTipWitchKingLeadership
  InPalantir		  = Yes
End

CommandButton Command_SpecialAbilityWitchKingChangeWeapon
	Command                 = SPECIAL_POWER 
;	Options					= TOGGLE_IMAGE_ON_WEAPONSET
	FlagsUsedForToggle		= WEAPONSET_TOGGLE_1
	SpecialPower            = SpecialAbilityBerserkerLightTorch
	ButtonImage             = HPWitchKingWarMace
	ButtonBorderType        = ACTION 
	TextLabel				= CONTROLBAR:FireWitchKingMace
	DescriptLabel			= CONTROLBAR:ToolTipFireWitchKingMace
	InPalantir			  = Yes
End

CommandButton Command_FireWitchKingMace
	Command					= FIRE_WEAPON
	WeaponSlot				= SECONDARY
	Options					=  NEED_TARGET_ENEMY_OBJECT NEED_TARGET_NEUTRAL_OBJECT CONTEXTMODE_COMMAND
	TextLabel				= CONTROLBAR:FireWitchKingMace
	DescriptLabel			= CONTROLBAR:ToolTipFireWitchKingMace
	ButtonImage				= HPWitchKingWarMace
	CursorName              = Bombard
	ButtonBorderType        = ACTION 
	InvalidCursorName       = GenericInvalid
	AutoAbility			  = Yes  
	InPalantir              = Yes
End

CommandButton Command_FireWitchKingMorgulBlade
	Command					= FIRE_WEAPON
	WeaponSlot				= TERTIARY
	Options					=  NEED_TARGET_ENEMY_OBJECT NEED_TARGET_NEUTRAL_OBJECT CONTEXTMODE_COMMAND
	TextLabel				= CONTROLBAR:FireWitchKingMorgulBlade
	DescriptLabel           = CONTROLBAR:ToolTipMorgulBlade
	ButtonImage				= HPWitchKingMorgulBlade
	CursorName              = Bombard
	ButtonBorderType        = ACTION 
	InvalidCursorName       = GenericInvalid
	AutoAbility				= No  
	InPalantir              = Yes
End

CommandButton Command_ToggleWitchKingWeapon
	Command 		= TOGGLE_WEAPONSET
	Options 		= TOGGLE_IMAGE_ON_WEAPONSET
	FlagsUsedForToggle	= WEAPONSET_TOGGLE_1
	TextLabel 		= CONTROLBAR:FireWitchKingMace
	ButtonImage 		= HPWitchKingWarMace HPWitchKingSword
	ButtonBorderType 	= ACTION 
	DescriptLabel 		= CONTROLBAR:ToolTipFireWitchKingMace
	InPalantir 		= Yes
End

CommandButton Command_SpecialAbilityBlackBreath
  Command                 = SPECIAL_POWER
  SpecialPower            = SpecialAbilityDominateEnemy
  Options                 = NEED_TARGET_POS CONTEXTMODE_COMMAND
  TextLabel               = CONTROLBAR:BlackBreath
  ButtonImage             = HPWitchKingBlackBreath
  RadiusCursorType        = DOMINATE
  ButtonBorderType        = ACTION
  DescriptLabel           = CONTROLBAR:ToolTipBlackBreath
  InPalantir			  = Yes
  ;UnitSpecificSound       = SarumanVoiceDominate
End

;-----------------------------------------------------------
;------------------GAMEDATA.INI-------------------------
;-----------------------------------------------------------
(Under the WitchKing data)

#define WITCHKING_ON_FELLBEAST_BUILDCOST		5000 ;;;8000
#define WITCHKING_ON_FELLBEAST_BUILDTIME		40 ;;;60
#define WITCHKING_ON_FELLBEAST_HEALTH			3500

#define WITCHKING_SWORD_PREATTACKDELAY 			500
#define WITCHKING_DELAYBETWEENSHOTS 			700
#define WITCHKING_FIRINGDURATION 			700
#define	WITCHKING_DAMAGE				250

#define WITCHKING_MORGULBLADE_PREATTACKDELAY 		500
#define WITCHKING_MORGULBLADE_DELAYBETWEENSHOTS 	700
#define WITCHKING_MORGULBLADE_FIRINGDURATION 		700
#define	WITCHKING_MORGULBLADE_DAMAGE			600

#define WITCHKING_MACE_PREATTACKDELAY 			1250
#define WITCHKING_MACE_DELAYBETWEENSHOTS 		1000
#define WITCHKING_MACE_FIRINGDURATION 			1750
#define	WITCHKING_MACE_DAMAGE				400

;;;delete the (;;; below) if you use my "Witch-King 'This Is My Hour'" Mod;;;

;;;#define WITCHKING_WORD_OF_POWER_DAMAGE			1
